<div class="panel panel-default">
    <div class="panel-heading">
    <#if skuProperty.id==-1>
        SKU属性新增
    <#else>
        SKU属性编辑
    </#if>
        <input type="hidden" name="id" value="${(skuProperty.id)!""}">
        <input type="hidden" name="catalogId" value="${(skuProperty.catalogId)!""}">
        <input type="hidden" name="sequence" value="${(skuProperty.sequence)!""}">
    </div>
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-3 control-label">分类属性名称</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" placeholder="分类属性名称" name="name" value="${(skuProperty.name)!""}">
        </div>
    </div>
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-3 control-label">分类属性类型</label>
        <div class="col-sm-5">
            <select class="form-control" placeholder="分类属性类型" name="type">
                <option value="0"
                <#if skuProperty.id?? && skuProperty.type == 0>
                        selected="selected"
                </#if>
                >输入框
                </option>
                <option value="1"
                <#if skuProperty.id?? && skuProperty.type == 1>
                        selected="selected"
                </#if>
                >复选框
                </option>
                <option value="2"
                <#if skuProperty.id?? && skuProperty.type == 2>
                        selected="selected"
                </#if>
                >下拉列表
                </option>
            </select>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary" onclick="saveSkuProperty()">保存</button>
    </div>
</div>